import configparser

import configparser
import pymysql
import sys

def getConn():
    conn = pymysql.connect(host='127.0.0.1', port=3306, user='root', passwd='123456', db='outsider', charset='utf8')
    return conn

def getPictureLoc():
    config = configparser.ConfigParser()
    config.read(sys.path[0]+"\pyConfig.txt", "utf-8")
    str=config.get("py", "pictureLoc")
    return str





